Skip to content

Conversation

@pranav33317
Copy link

@pranav33317 pranav33317 commented Apr 13, 2025

TODO:

  • [] Write new tests or update the old ones to cover new functionality.
  • Update doc-strings where appropriate.
  • Update or write new documentation in packit/packit.dev.
  • ‹resolved errors occurring by running pre-commit run --all-files›

Fixes

Related to

Merge before/after

RELEASE NOTES BEGIN

Packit now supports automatic ordering of ☕ after all checks pass.

RELEASE NOTES END
image

@softwarefactory-project-zuul
Copy link
Contributor

raise NotImplementedError()

@indirect(ForgejoIssue.get_list)
# type: ignore

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# type: ignore
# type: ignore[empty-body]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same applies elsewhere. It's better to pass an explicit error code when to type: ignore pragmas, but maybe it doesn't matter so much here.

@property
def created_at(self) -> datetime.datetime:
return None
return datetime.datetime.now

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you forgot parentheses. This returns a function object, not a datetime. In any case, I'm not sure returning the current time is right here. Probably better to change the type signature to datetime.datetime | None here and in the base class to reflect that some implementations don't provide this information.

Comment on lines +29 to +31
if ogr_pagure.PagureProject is None:
_source_project = ""
_source_project: "ogr_pagure.PagureProject"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ogr_pagure.PagureProject is None:
_source_project = ""
_source_project: "ogr_pagure.PagureProject"
_source_project: Optional[ogr_pagure.PagureProject]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants